<?php
namespace app\models\request;

use app\components\CodeValidator;
use yii\base\Model;

class ReqAddAddress extends Model
{

    private $id;
    private $userId;
    private $receivePhone;
    private $receiveName;
    private $province;
    private $city;
    private $district;
    private $detailAddress;
    private $isDefault;

    /**
     * @return mixed
     */
    public function getIsDefault()
    {
        return $this->isDefault;
    }

    /**
     * @param mixed $isDefault
     */
    public function setIsDefault($isDefault)
    {
        $this->isDefault = $isDefault;
    }



    /**
     * @return mixed
     */
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * @param mixed $userId
     */
    public function setUserId($userId)
    {
        $this->userId = $userId;
    }

    /**
     * @return mixed
     */
    public function getReceivePhone()
    {
        return $this->receivePhone;
    }

    /**
     * @param mixed $receivePhone
     */
    public function setReceivePhone($receivePhone)
    {
        $this->receivePhone = $receivePhone;
    }

    /**
     * @return mixed
     */
    public function getReceiveName()
    {
        return $this->receiveName;
    }

    /**
     * @param mixed $receiveName
     */
    public function setReceiveName($receiveName)
    {
        $this->receiveName = $receiveName;
    }

    /**
     * @return mixed
     */
    public function getProvince()
    {
        return $this->province;
    }

    /**
     * @param mixed $province
     */
    public function setProvince($province)
    {
        $this->province = $province;
    }

    /**
     * @return mixed
     */
    public function getCity()
    {
        return $this->city;
    }

    /**
     * @param mixed $city
     */
    public function setCity($city)
    {
        $this->city = $city;
    }

    /**
     * @return mixed
     */
    public function getDistrict()
    {
        return $this->district;
    }

    /**
     * @param mixed $district
     */
    public function setDistrict($district)
    {
        $this->district = $district;
    }

    /**
     * @return mixed
     */
    public function getDetailAddress()
    {
        return $this->detailAddress;
    }

    /**
     * @param mixed $detailAddress
     */
    public function setDetailAddress($detailAddress)
    {
        $this->detailAddress = $detailAddress;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }






    public function rules()
    {
        return [
            [['receivePhone','receiveName','province','city','district','detailAddress'], 'required'],
            [['id','isDefault'], 'safe'],
        ];
    }


}